# -*- coding: utf-8 -*-

from aws import AwsServiceResource


class DynamoDB(AwsServiceResource):

    def _init(self):
        super(DynamoDB, self)._init('dynamodb')

    def get_table(self, name):
        return self.resource.Table(name)

    def get_all_tables(self):
        return self.resource.tables
